package com.neusoft.service.impl;

import com.neusoft.domain.Food;
import com.neusoft.mapper.FoodDao;
import com.neusoft.service.FoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FoodServiceImpl implements FoodService {
    // 创建FoodDao对象
    @Autowired
    FoodDao foodDao;

    @Override
    public List<Food> listFoodByBusinessId(Integer businessId){
        List<Food> foodList = foodDao.listFoodByBusinessId(businessId);
        return foodList;
    }
}
